<?php

/**
 * Created by PhpStorm.
 * User: wen
 * Date: 2017/6/21
 * Time: 9:43
 */
namespace V1;
class OrderStatus extends \ResourceClass
{
    public $isActive = true;
    public $remark = '查询订单状态';

    public function get(array $req, array $post, &$result)
    {
        if (!isset($req['k']) || !isset($req['t'])) {
            return 'data error';
        }
        if (!isset($req['order_id']) && empty($req['order_id'])) {
            return 'require enterprise order_id';
        }
       /*order查询订单状态*/
        $order_biz = new \Biz\Order();
        $order_res = $order_biz ->getOrderStatusById($req['order_id']);
        if (!$order_res) {
            return 'Invalid order';
        }
    }
}